import * as types from '../actionsType/user'
import { http } from '@/utiles'

const getInfo = () => {
  return async (dispatch) => {
    const res = await http.get('/user/profile')
    dispatch({
      type: types.GET_USER_INFO,
      payload: res.data.data
    })
  }
}
export { getInfo }
